package Text_14;

import java.util.Random;

public class math {

	public static void main(String[] args) {
			Random random = new Random();
			int sum = 0;
			int count = 0;
			int arr[] = new int[10];
			for(int i=0;i<arr.length;i++) {
				int number = random.nextInt(100)+1;
				arr[i] = number;
				sum = sum + arr[i];
			}
			for(int i=0;i<arr.length;i++) {
				if(arr[i]<(sum/arr.length)) {
					count++;
				}
				System.out.print(arr[i]+" ");
//				System.out.println("和为:"+sum);
//				System.out.println("平均数为："+sum/arr.length);
			}
			System.out.println();
			System.out.println("和为:"+sum);
			System.out.println("平均数为："+sum/arr.length);
			System.out.println("比平均值小的数有："+count);
			
		

	}

}
